package ch03;

class OperatorEx26 {
	public static void main(String[] args) {
		int x = 3;
		int y = 5;

		System.out.println("x is " + x + ", y is " + y + ":");
		System.out.println("x | y = " + (x | y));
		System.out.println("x & y = " + (x & y));
		System.out.println("x ^ y = " + (x ^ y));

		System.out.println("true | false = " + (true | false));
		System.out.println("true & false = " + (true & false));
		System.out.println("true ^ false = " + (true ^ false));
	}
}
/*
x is 3, y is 5:
x | y = 7
x & y = 1
x ^ y = 6
true | false = true
true & false = false
true ^ false = true
*/